<form id="pagerForm" action="jms/stock/lookupStock">

</form>

<div class="pageHeader">
	<form rel="pagerForm" method="post" action="jms/stock/lookupStock" onsubmit="return dwzSearch(this, 'dialog');">
		<div class="searchBar">
			<ul class="searchContent">
				<li>
					<label>物资名称：</label>
					<input type="text" size="20" name="stock.name" value="${(name)!}" />
				</li>
				<li>
					<label>订单号：</label>
					<input type="text" size="20" name="stock.oid" value="${(oid)!}" />
				</li>

			</ul>
			<div class="subBar">
				<ul>
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
				</ul>
			</div>
		</div>
	</form>
</div>
<div class="pageContent">

	<table class="table" layoutH="118" targetType="dialog" width="100%">
		<thead>
			<tr>
				<th orderfield="oid">订单号</th>
				<th orderfield="mid">物料编号</th>
				<th orderfield="name">物料名称</th>
				<th orderfield="model">规划型号</th>
				<th orderfield="supplier">供应商</th>
				<th width="80">选择</th>
			</tr>
		</thead>
		<tbody>
		<#list pager.list as m>
			<tr>
				<td>${(m.oid)!}</td>
				<td>${(m.mid)!}</td>
				<td>${(m.name)!}</td>
				<td>${(m.model)!}</td>
				<td>${(m.supplier)!}</td>
				<td>
					<a class="btnSelect" href="javascript:$.bringBack({oid:'${(m.oid)!}',mid:'${(m.mid)!}', maxNum:'${(m.quantity)!}'})" title="查找带回">选择</a>
				</td>
			</tr>
		</#list>
		</tbody>
	</table>

	<div class="panelBar">
		<div class="pages">

			<span>共<font style="color:red;font-weight:bold;">${pager.totalRow!}</font>条，共<font style="color:red;font-weight:bold;">${pager.totalPage!}</font>页&nbsp;&nbsp;&nbsp;&nbsp;</span>
		</div>
		<div class="pagination" targetType="dialog" totalCount="${pager.totalRow!}" numPerPage="${pager.pageSize!}" pageNumShown="10" currentPage="${pager.pageNumber!}"></div>
	</div>
</div>